package com.yan.composite;

import java.util.Collection;

public interface Tree<T extends Nameable> extends Nameable {
    String getPrefix();

    void add(T c);

    void remove(T c);

    T getChild(int i);

    T getChild(String name);

    Collection<T> getChildren();

    void report();

    boolean isRoot();
}
